package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * ClusterList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cluster_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = {
		"uid", "major_id", "minor_id" }))
public class ClusterList implements java.io.Serializable {

	// Fields

	private ClusterListId id;

	// Constructors

	/** default constructor */
	public ClusterList() {
	}

	/** full constructor */
	public ClusterList(ClusterListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "uid", column = @Column(name = "uid")),
			@AttributeOverride(name = "majorId", column = @Column(name = "major_id")),
			@AttributeOverride(name = "minorId", column = @Column(name = "minor_id")),
			@AttributeOverride(name = "space", column = @Column(name = "space")) })
	public ClusterListId getId() {
		return this.id;
	}

	public void setId(ClusterListId id) {
		this.id = id;
	}

}